package top.scsoul.pas.service;

import org.springframework.data.domain.Page;
import top.scsoul.pas.entity.Clazz;

import java.util.List;


public interface ClazzService {
    Page<Clazz> listClazz(int currentPage, int pageSize);

    List<Clazz> listClazz();

    boolean save(String name, String created, long leaderId,Integer type);

    Clazz getById(Long id);

    void update(Long id, String name, String created, long leaderId,Integer type);;
    void delete(Long id);
    long getCountByClazzName(String clazzName);
}
